Developer Documentation

QuickTime 4 API Documentation

QuickTime 4 Reference

| Previous | Chapter Contents | Chapter Top | Next |

Text Sample Display Flags

The displayflags parameter for the AddTESample and AddTextSample functions control the behavior of the text media handler. QuickTime 2.5 provides these additional flags:

enum {
    dfContinuousScroll      = 1 << 9,
    dfFlowHoriz             = 1 << 10,
    dfContinuousKaraoke     = 1 << 11,
    dfDropShadow            = 1 << 12,
    dfAntiAlias             = 1 << 13,
    dfKeyedText             = 1 << 14,
    dfInverseHilite         = 1 << 15,
    dfTextColorHilite       = 1 << 16
};

Flag description

dfContinuousScroll
If this flag is set, the text media handler lets new samples cause previous samples to scroll out. You must also set dfScrollIn or dfScrollOff , or both, for this to take effect.

dfFlowHoriz
If this flag is set, the text media handler lets horizontally scrolled text flow within the text box instead of extending to the right.

dfContinuousKaraoke
If this flag is set, the text media handler ignores the starting offset when highlighting text. Instead, it highlights text from the beginning of the text sample to the ending offset.

dfDropShadow
If this flag is set, the text media handler displays text with a drop shadow. If you use the TextMediaSetTextSampleData function, the position and translucency of the drop shadow is under your application's control. For more information, see "TextMediaSetTextSampleData" .

dfAntiAlias
If this flag is set, the text media handler displays text with anti-aliasing. Note that although anti-aliased text looks smoother, anti-aliasing can slow down performance.

dfKeyedText
If this flag is set, the text media handler renders text over the background without drawing the background color. This technique is also known as "masked text."

dfInverseHilite
If this flag is set, the text media handler highlights text using inverse video instead of the highlight color.

dfTextColorHilite
If this flag is set, the text media handler highlights text by changing the color of the text.


© 1999 Apple Computer, Inc.

| Previous | Chapter Contents | Chapter Top | Next |